package cn.sail.ssm.shop.service.impl;

import cn.sail.ssm.shop.dao.UserMapper;
import cn.sail.ssm.shop.pojo.entity.User;
import cn.sail.ssm.shop.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User selectById(long userId) {
        return userMapper.selectById(userId);
    }
}
